<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Animoso.Domain.Administration>>" %>
<%@ Import Namespace="Animoso.Domain" %>
<%@ Import Namespace="Animoso.Web.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Animoso Bestuur
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Besturen S.V. Animoso</h2>
    <p><%=ViewData["administrationDescription"] %></p>    
    <% foreach (Administration administration in Model)
{%>
  <div class="bestuur">
  <%
    string startDate = administration.StartDate.ToShortDateString();
    string endDate = "??";
           if(administration.EndDate != null)
               endDate = administration.EndDate.ToString(); %>
  <h3>Bestuur <%=startDate + " - " + endDate  %></h3>
  <img src="/<%=Folders.ADMINISTRATION_PICTURE_FOLDER + "/" + administration.Picture %>" /><br />
  <% foreach (Member member in administration.Members)
{
    string commission = "";
    if (member.Commission != null)
        commission = " " + member.Commission.Name;%>
  <%=member.FirstName + " " + member.LastName + "(" + member.Role + commission + ")"%><br />
<% } %>
  </div>
<%} %>

</asp:Content>
